@extends('default.mobile.layouts.indexPublic')
@section('title','企业找回密码')
{{--首页css--}}
@section('headcss')
    @parent
    <link rel="stylesheet" href="{{asset('/default/css/mobile/index/register_login.css')}}">
    @endsection
    {{--头部标签--}}
    @section('tag','企业找回密码')

    {{--主体内容--}}
    @section('content')
            <!-- E 头部 -->
    <div class="main">
        <ul class="menu">
            <li class="on">邮箱找回</li>
            <li>手机找回</li>
        </ul>
        {{--普通登录--}}
        <div class="register_login oLogin">
            <form action="{{url('mobile/company/email_find')}}" onsubmit="return checkCompanyEmail('#emailForm')" method="post" id="emailForm"  name="emailForm" >
                {{csrf_field()}}
                <ul>
                    <li><i class="icon_rl06"></i><input type="text" name="username" value="{{old('username')}}" id="username" autocomplete="off"  placeholder="请输入用户名/手机号码"></li>
                    <li><i class="icon_rl03"></i><input type="text" name="email" value="{{old('email')}}" id="email" placeholder="请输入邮箱" autocomplete="off"  ></li>
                </ul>
                <div class="forget">
                    <span class="forgetPass"><a href="{{url('mobile/company/login')}}">立即登录？</a></span>
                </div>
                <div class="sub"><input type="submit" value="下一步"></div>
            </form>
        </div>
        {{--手机登录--}}
        <div class="register_login mobLogin"  style="display: none" >
            <form action="{{url('mobile/company/mobile_find')}}" onsubmit="return checkCompanyMobile('#mobForm')" method="post" id="mobForm"  name="mobForm" >
                {{csrf_field()}}
                <ul>
                    <li><i class="icon_rl05"></i><input type="text" name="mobile" id="mobile" value="{{request('mobile')}}"  autocomplete="off"  placeholder="请输入手机号码"></li>
                    <li><i class="icon_rl07"></i><input type="text" name="mobCode" id="mobCode"  value="{{old('mobCode')}}" autocomplete="off"  placeholder="请输入验证码" class="inp02">
                        <input name="mobcode" id="mobcode" type="button" onclick="getModCode($(this),$('#mobile'))" class="code" value="获取验证码">
                </ul>
                <div class="forget">
                    <span class="forgetPass"><a href="{{url('mobile/company/login')}}">立即登录？</a></span>
                </div>
                <div class="sub"><input type="submit" value="下一步"></div>
            </form>
        </div>
    </div>

    {{--尾部--}}
    @include('default.mobile.layouts.footer')
@endsection

@section('footerjs')
    @parent
    <script>
        var imgCode = "{{captcha_src('code')}}" + Math.random();
        var _token = "{{csrf_token()}}";
        @if(session('status'))
            layerMsg('{{session('status')}}',2);
        @endif
        //获取手机号码
        $(function(){
            if('{{request('mobile')}}' != ''){
                $('.main .menu').find('ul li').eq(1).addClass('on').siblings().removeClass('on');
                $('.oLogin').hide();
                $('.mobLogin').show();
            }
        });
    </script>
    <script type="text/javascript" src="{{asset('/default/js/mobile/company/find_password.js')}}"></script>
@endsection